<!-- <template>
  <el-container class="layout-container-demo">
    <el-aside width="200px">
      <el-menu
        :default-openeds="['1', '3']"
        router
        active-text-color="#ffd04b"
        background-color="#545c64"
        class="el-menu-vertical-demo"
        default-active="2"
        text-color="#fff"
      >
        <el-sub-menu index="1">
          <template #title>
            <el-icon><message /></el-icon>账号管理
          </template>
          <el-menu-item index="/">首页</el-menu-item>
          <el-menu-item index="/about">about</el-menu-item>
        </el-sub-menu>
      </el-menu>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <h3>前方管理系统</h3>
        <span>Tom</span>
      </el-header>

      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import { Menu as IconMenu, Message, Setting } from "@element-plus/icons-vue";
export default {
  components: {
    IconMenu,
    Message,
    Setting,
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
html,
body,
#app {
  height: 100%;
}
.el-container {
  height: 100%;
}
.el-aside {
  background-color: #545c64;
  height: 100%;
  border-color: #545c64;
}
</style> -->
<template>
  <div class="app">
    <router-view></router-view>
  </div>
</template>
<style>
.app {
  height: 100vh;
  width: 100vw;
}
</style>
